package com.hk.Mgr.web.controller;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.hk.Mgr.web.message.StatusCode;
import com.hk.Mgr.web.message.kyc.LogReq;
import com.hk.Mgr.web.message.kyc.LogRes;
import com.hk.base.BaseCtrl;
import com.hk.base.ResponseBase;
import com.hk.commons.HqlFilter;
import com.hk.commons.ReqToModelHelper;
import com.hk.commons.StringHelper;
import com.hk.commons.entity.Bank;
import com.hk.commons.entity.City;
import com.hk.commons.entity.LogUtil;
import com.hk.commons.entity.Organization;
import com.hk.commons.entity.Province;
import com.hk.commons.entity.sys.SysUser;
import com.hk.service.IOrganization;
import com.hk.service.kyc.ILogUtil;
import com.hk.service.sys.IBank;
import com.hk.service.sys.ICity;
import com.hk.service.sys.IProvince;
import com.hk.service.sys.ISysUser;

/**
 * @author lemon 用户实现类
 */
@Controller
@RequestMapping(value = BaseCtrl.MgrRootPath + "/bankCtrl")
public class BankCtrl extends BaseCtrl {

	private Logger logger = LoggerFactory.getLogger(BankCtrl.class);

	@Autowired
	private IBank bankService;

	 
	
	 
	 
	/**
	 * 获取银行卡列表
	 * @param req
	 * @return
	 */
	@ResponseBody
	@RequestMapping(value = "/getBankList", method = RequestMethod.GET)
	public ResponseBase<List<Bank>> getProList() {
		ResponseBase<List<Bank>> resp = new ResponseBase<List<Bank>>();
		logger.info("进入8080");
		List<Bank> respList = new ArrayList<Bank>();
		
//		HqlFilter hqlFilter = new HqlFilter();
//		
//		try{
//			respList = bankService.findByFilter(hqlFilter);
//			if(respList != null && respList.size() >0 ){
//			resp.setSize(respList.size());
//			resp.setResult(respList);
//			resp.setResultCode(StatusCode.SUCCESS.key());
//			}
//			 
//		} catch (Exception ex) {
//			logger.error(ex.getMessage(), ex);
//			resp.setMsg("操作异常，请重试");
//			resp.setResultCode(StatusCode.EXCEPTION.key());
//		}

		return resp;
	}
	
	 
	 
}
